.searchPage {
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
}

.searchPage :global(.adm-nav-bar) {
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}

.searchContainer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}

.searchInputWrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #00CC66;
  border-radius: 20px;
  padding: 0 16px;
  height: 40px;
  box-shadow: none;
}

.searchIcon {
  color: #00CC66;
  font-size: 16px;
  margin-right: 8px;
}

.searchInput {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #333;
}

.searchInput :global(.adm-input) {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 14px;
  color: #333;
}

.searchInput :global(.adm-input)::placeholder {
  color: #999;
  font-size: 14px;
}

.clearIcon {
  color: #999;
  font-size: 16px;
  cursor: pointer;
  margin-left: 8px;
}

.searchBtn {
  background: transparent;
  color: #333;
  border: none;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  padding: 0;
  font-weight: 400;
}

.searchBtn:hover {
  color: #000;
}

.searchBtn:disabled {
  color: #ccc;
  cursor: not-allowed;
}

.searchContent {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.suggestImageContainer {
  width: 100%;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
}

.suggestImage {
  width: 380px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.loadingText {
  color: #666;
  font-size: 14px;
}

.resultItem {
  background: white;
  margin-bottom: 8px;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.resultItem:hover {
  background: #f8f9fa;
}

.resultContent {
  display: flex;
  gap: 12px;
}

.resultImage {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.resultText {
  flex: 1;
  min-width: 0;
}

.resultTitle {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.resultSummary {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.resultType {
  font-size: 12px;
  color: #1677ff;
  background: #e6f7ff;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
}

.emptyState {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: #999;
}

.emptyIcon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.emptyText {
  font-size: 16px;
}

.suggestionsContainer {
  background: white;
  border-radius: 8px;
  margin-bottom: 8px;
}

.suggestionItem {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.suggestionItem:last-child {
  border-bottom: none;
}

.suggestionItem:hover {
  background: #f8f9fa;
}

.suggestionIcon {
  color: #999;
  font-size: 16px;
  margin-right: 12px;
}

.suggestionText {
  font-size: 14px;
  color: #333;
}

.defaultContent {
  padding: 0;
}

.historySection,
.hotSection {
  background: white;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 16px;
}

.sectionHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.sectionTitle {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.clearIcon,
.refreshIcon {
  color: #999;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s;
}

.clearIcon:hover,
.refreshIcon:hover {
  color: #666;
}

.tagContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.searchTag {
  background: #f5f5f5;
  color: #666;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  margin: 4px;
  display: inline-block;
}

.searchTag:hover {
  background: #e8e8e8;
  color: #333;
}

.searchTag a {
  background: #f5f5f5;
  color: #666;
  text-decoration: none;
}

.hotTag {
  background: #f5f5f5;
  color: #666;
  position: relative;
}

.hotTag:hover {
  background: #e6f7ff;
  color: #1677ff;
}

.hotTag.withIcon::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  vertical-align: middle;
}

.hotTag.withIcon.chartIcon::before {
  background: #ff4d4f;
  border-radius: 2px;
}

.hotTag.withIcon.pinIcon::before {
  background: #ff4d4f;
  border-radius: 50%;
}

.tagIcon {
  margin-right: 4px;
  font-size: 12px;
}

.tagIconImage {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: middle;
}

.htmlResultContainer {
  background: white;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.drugCardsContainer {
  background: white;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 16px;
}

.drugCardsTitle {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
}

.drugCardsScroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.drugCardsScroll::-webkit-scrollbar {
  display: none;
}

.drugCard {
  flex-shrink: 0;
  width: 280px;
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
}

.drugCardTitle {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
  line-height: 1.3;
}

.drugCardDescription {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.4;
}

.drugCardTags {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.drugCardTag {
  background: #f5f5f5;
  color: #666;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.drugCardTag:hover {
  background: #e8e8e8;
  color: #333;
}

.drugCardTag.active {
  background: #00CC66;
  color: white;
}

.htmlResultHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.htmlResultHeader h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.openInNewWindow {
  background: #00CC66;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.openInNewWindow:hover {
  background: #00b359;
}

.htmlContent {
  max-height: 80vh;
  overflow-y: auto;
  padding: 0;
  font-size: 16px;
}

.htmlContent :global .container {
  padding: 0 !important;
  margin: 0 !important;
}

.htmlContent :global .input-section {
  display: none !important;
}

.htmlContent :global .search-tab-wrap {
  display: none !important;
}

.htmlContent :global .con-content {
  padding: 20px !important;
  background: white !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}

.htmlContent :global .article-content, .htmlContent :global .content, .htmlContent :global .main-content {
  padding: 20px !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
  color: #333 !important;
}

.htmlContent :global h1, .htmlContent :global h2, .htmlContent :global h3, .htmlContent :global h4, .htmlContent :global h5, .htmlContent :global h6 {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #222 !important;
  margin: 20px 0 12px 0 !important;
  line-height: 1.4 !important;
}

.htmlContent :global p {
  font-size: 16px !important;
  line-height: 1.8 !important;
  color: #555 !important;
  margin: 12px 0 !important;
}

.htmlContent :global ul, .htmlContent :global ol {
  font-size: 16px !important;
  line-height: 1.8 !important;
  color: #555 !important;
  padding-left: 24px !important;
}

.htmlContent :global li {
  margin: 8px 0 !important;
}

.htmlContent :global .baike-new-section,
.htmlContent :global .goods-card,
.htmlContent :global .consult,
.htmlContent :global .recommend,
.htmlContent :global .baike.doctor-topic,
.htmlContent :global .science,
.htmlContent :global .recommend_hospitals {
  margin-bottom: 16px !important;
  background: white !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden !important;
}

.htmlContent :global .goods-big-title,
.htmlContent :global .card_title,
.htmlContent :global .search-title-name {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #222 !important;
  margin-bottom: 12px !important;
}

.htmlContent :global img {
  max-width: 100% !important;
  height: auto !important;
}

.htmlContent :global a {
  color: #00CC66 !important;
  text-decoration: none !important;
}

.htmlContent :global a:hover {
  color: #00b359 !important;
}

.htmlContent :global button {
  background: #00CC66 !important;
  color: white !important;
  border: none !important;
  padding: 8px 16px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
}

.htmlContent :global button:hover {
  background: #00b359 !important;
}

.htmlContent :global .medicine-cards, .htmlContent :global .drug-cards, .htmlContent :global .product-cards,
.htmlContent :global [class*="medicine"][class*="card"], .htmlContent :global [class*="drug"][class*="card"] {
  display: flex !important;
  gap: 12px !important;
  overflow-x: auto !important;
  padding: 16px 0 !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.htmlContent :global .medicine-cards::-webkit-scrollbar, .htmlContent :global .drug-cards::-webkit-scrollbar, .htmlContent :global .product-cards::-webkit-scrollbar,
.htmlContent :global [class*="medicine"][class*="card"]::-webkit-scrollbar, .htmlContent :global [class*="drug"][class*="card"]::-webkit-scrollbar {
  display: none !important;
}

.htmlContent :global .medicine-cards > div, .htmlContent :global .medicine-cards > a, .htmlContent :global .medicine-cards > li, .htmlContent :global .drug-cards > div, .htmlContent :global .drug-cards > a, .htmlContent :global .drug-cards > li, .htmlContent :global .product-cards > div, .htmlContent :global .product-cards > a, .htmlContent :global .product-cards > li,
.htmlContent :global [class*="medicine"][class*="card"] > div,
.htmlContent :global [class*="medicine"][class*="card"] > a,
.htmlContent :global [class*="medicine"][class*="card"] > li, .htmlContent :global [class*="drug"][class*="card"] > div, .htmlContent :global [class*="drug"][class*="card"] > a, .htmlContent :global [class*="drug"][class*="card"] > li {
  flex-shrink: 0 !important;
  min-width: 280px !important;
  max-width: 280px !important;
  background: white !important;
  border-radius: 8px !important;
  padding: 16px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #f0f0f0 !important;
  margin-right: 12px !important;
}

.htmlContent :global div[style*="display: flex"]:not(.goods-card):not(.baike-new-section):not(.recommend):not(.doctor-recommend):not(.product-recommend):not(.recommend_doctors):not(.recommend_products),
.htmlContent :global div[style*="flex"]:not(.goods-card):not(.baike-new-section):not(.recommend):not(.doctor-recommend):not(.product-recommend):not(.recommend_doctors):not(.recommend_products),
.htmlContent :global .flex-container:not(.goods-card):not(.baike-new-section):not(.recommend):not(.doctor-recommend):not(.product-recommend):not(.recommend_doctors):not(.recommend_products),
.htmlContent :global .scroll-container:not(.goods-card):not(.baike-new-section):not(.recommend):not(.doctor-recommend):not(.product-recommend):not(.recommend_doctors):not(.recommend_products),
.htmlContent :global .goods-list:not(.goods-card):not(.baike-new-section):not(.recommend):not(.doctor-recommend):not(.product-recommend):not(.recommend_doctors):not(.recommend_products),
.htmlContent :global .product-list:not(.goods-card):not(.baike-new-section):not(.recommend):not(.doctor-recommend):not(.product-recommend):not(.recommend_doctors):not(.recommend_products),
.htmlContent :global .medicine-list:not(.goods-card):not(.baike-new-section):not(.recommend):not(.doctor-recommend):not(.product-recommend):not(.recommend_doctors):not(.recommend_products) {
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.htmlContent :global div[style*="display: flex"]:not(.goods-card):not(.baike-new-section):not(.recommend):not(.doctor-recommend):not(.product-recommend):not(.recommend_doctors):not(.recommend_products)::-webkit-scrollbar,
.htmlContent :global div[style*="flex"]:not(.goods-card):not(.baike-new-section):not(.recommend):not(.doctor-recommend):not(.product-recommend):not(.recommend_doctors):not(.recommend_products)::-webkit-scrollbar,
.htmlContent :global .flex-container:not(.goods-card):not(.baike-new-section):not(.recommend):not(.doctor-recommend):not(.product-recommend):not(.recommend_doctors):not(.recommend_products)::-webkit-scrollbar,
.htmlContent :global .scroll-container:not(.goods-card):not(.baike-new-section):not(.recommend):not(.doctor-recommend):not(.product-recommend):not(.recommend_doctors):not(.recommend_products)::-webkit-scrollbar,
.htmlContent :global .goods-list:not(.goods-card):not(.baike-new-section):not(.recommend):not(.doctor-recommend):not(.product-recommend):not(.recommend_doctors):not(.recommend_products)::-webkit-scrollbar,
.htmlContent :global .product-list:not(.goods-card):not(.baike-new-section):not(.recommend):not(.doctor-recommend):not(.product-recommend):not(.recommend_doctors):not(.recommend_products)::-webkit-scrollbar,
.htmlContent :global .medicine-list:not(.goods-card):not(.baike-new-section):not(.recommend):not(.doctor-recommend):not(.product-recommend):not(.recommend_doctors):not(.recommend_products)::-webkit-scrollbar {
  display: none !important;
}

.htmlContent :global div[style*="display: flex"]:not(.goods-card):not(.baike-new-section):not(.recommend):not(.doctor-recommend):not(.product-recommend):not(.recommend_doctors):not(.recommend_products) > *,
.htmlContent :global div[style*="flex"]:not(.goods-card):not(.baike-new-section):not(.recommend):not(.doctor-recommend):not(.product-recommend):not(.recommend_doctors):not(.recommend_products) > *,
.htmlContent :global .flex-container:not(.goods-card):not(.baike-new-section):not(.recommend):not(.doctor-recommend):not(.product-recommend):not(.recommend_doctors):not(.recommend_products) > *,
.htmlContent :global .scroll-container:not(.goods-card):not(.baike-new-section):not(.recommend):not(.doctor-recommend):not(.product-recommend):not(.recommend_doctors):not(.recommend_products) > *,
.htmlContent :global .goods-list:not(.goods-card):not(.baike-new-section):not(.recommend):not(.doctor-recommend):not(.product-recommend):not(.recommend_doctors):not(.recommend_products) > *,
.htmlContent :global .product-list:not(.goods-card):not(.baike-new-section):not(.recommend):not(.doctor-recommend):not(.product-recommend):not(.recommend_doctors):not(.recommend_products) > *,
.htmlContent :global .medicine-list:not(.goods-card):not(.baike-new-section):not(.recommend):not(.doctor-recommend):not(.product-recommend):not(.recommend_doctors):not(.recommend_products) > * {
  flex-shrink: 0 !important;
  margin-right: 12px !important;
  min-width: 280px !important;
  max-width: 280px !important;
}

.htmlContent :global .goods-card, .htmlContent :global .baike-new-section, .htmlContent :global .recommend,
.htmlContent :global .doctor-recommend, .htmlContent :global .product-recommend,
.htmlContent :global .recommend_doctors, .htmlContent :global .recommend_products {
  display: block !important;
  overflow: visible !important;
}

.htmlContent :global .goods-card > div, .htmlContent :global .goods-card > a, .htmlContent :global .goods-card > li, .htmlContent :global .baike-new-section > div, .htmlContent :global .baike-new-section > a, .htmlContent :global .baike-new-section > li, .htmlContent :global .recommend > div, .htmlContent :global .recommend > a, .htmlContent :global .recommend > li,
.htmlContent :global .doctor-recommend > div,
.htmlContent :global .doctor-recommend > a,
.htmlContent :global .doctor-recommend > li, .htmlContent :global .product-recommend > div, .htmlContent :global .product-recommend > a, .htmlContent :global .product-recommend > li,
.htmlContent :global .recommend_doctors > div,
.htmlContent :global .recommend_doctors > a,
.htmlContent :global .recommend_doctors > li, .htmlContent :global .recommend_products > div, .htmlContent :global .recommend_products > a, .htmlContent :global .recommend_products > li {
  display: block !important;
  width: 100% !important;
  min-width: auto !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-bottom: 12px !important;
  background: white !important;
  border-radius: 8px !important;
  padding: 16px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #f0f0f0 !important;
}

.htmlContent :global div[style*="display: flex"],
.htmlContent :global div[style*="flex"],
.htmlContent :global .flex-container,
.htmlContent :global .scroll-container,
.htmlContent :global .goods-list,
.htmlContent :global .product-list,
.htmlContent :global .medicine-list {
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.htmlContent :global div[style*="display: flex"]::-webkit-scrollbar,
.htmlContent :global div[style*="flex"]::-webkit-scrollbar,
.htmlContent :global .flex-container::-webkit-scrollbar,
.htmlContent :global .scroll-container::-webkit-scrollbar,
.htmlContent :global .goods-list::-webkit-scrollbar,
.htmlContent :global .product-list::-webkit-scrollbar,
.htmlContent :global .medicine-list::-webkit-scrollbar {
  display: none !important;
}

.htmlContent :global div[style*="display: flex"] > *,
.htmlContent :global div[style*="flex"] > *,
.htmlContent :global .flex-container > *,
.htmlContent :global .scroll-container > *,
.htmlContent :global .goods-list > *,
.htmlContent :global .product-list > *,
.htmlContent :global .medicine-list > * {
  flex-shrink: 0 !important;
  margin-right: 12px !important;
  min-width: 280px !important;
  max-width: 280px !important;
}

.htmlContent :global .medicine-item, .htmlContent :global .drug-item, .htmlContent :global .product-item,
.htmlContent :global [class*="medicine"], .htmlContent :global [class*="drug"], .htmlContent :global [class*="product"],
.htmlContent :global .goods-item, .htmlContent :global .card-item {
  min-width: 280px !important;
  max-width: 280px !important;
  background: white !important;
  border-radius: 8px !important;
  padding: 16px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #f0f0f0 !important;
}

@media (min-width: 768px) {
  .searchContainer {
    max-width: 400px;
  }
  .resultImage {
    width: 80px;
    height: 80px;
  }
  .tagContainer {
    gap: 12px;
  }
  .searchTag {
    padding: 8px 16px;
    font-size: 15px;
  }
  .htmlContent {
    max-height: 90vh;
    font-size: 18px;
  }
  .htmlContent :global h1, .htmlContent :global h2, .htmlContent :global h3, .htmlContent :global h4, .htmlContent :global h5, .htmlContent :global h6 {
    font-size: 20px !important;
  }
  .htmlContent :global p, .htmlContent :global li, .htmlContent :global span, .htmlContent :global div {
    font-size: 18px !important;
  }
  .htmlContent :global .con-content, .htmlContent :global .article-content, .htmlContent :global .content, .htmlContent :global .main-content {
    padding: 24px !important;
    font-size: 18px !important;
  }
}
